﻿using HogoLogic;

namespace ProjectView
{
	public class ProjectSelectionResult
	{
		private readonly bool isCustom;
		private readonly HogoProject selectedProject;

		public bool IsCustom
		{
			get { return isCustom; }
		}

		public HogoProject SelectedProject
		{
			get { return selectedProject; }
		}

		private ProjectSelectionResult(bool isCustom, HogoProject selectedProject)
		{
			this.isCustom = isCustom;
			this.selectedProject = selectedProject;
		}

		static public readonly ProjectSelectionResult Empty = new ProjectSelectionResult(false, null);
		static public readonly ProjectSelectionResult Init = new ProjectSelectionResult(false, null);
		static public readonly ProjectSelectionResult Clone = new ProjectSelectionResult(false, null);
		static public readonly ProjectSelectionResult Make = new ProjectSelectionResult(false, null);

		public ProjectSelectionResult(HogoProject selectedProject): this(true, selectedProject)
		{
		}

	}
}
